package com.example.dbdesign.mapper;

import com.example.dbdesign.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    User queryById(int id);
    User queryByUno(String uno);
    void insert(User user);
    void updateById(User user);
    void deleteById(int id);
    List<User> queryByPage(Map<String, Object> map);
    int cal();
    List<User> queryByType(int type);
    List<User> queryByDate(int date);
    List<User> queryByTypeAndDate(Map<String, Object> map);
    List<User> selectStuByIdForTeacher(int id);
}
